package com.yuhanginfo.modules.web.dao;

import java.util.List;
import java.util.Map;

import com.yuhanginfo.common.persistence.CrudDao;
import com.yuhanginfo.common.persistence.annotation.MyBatisDao;
import com.yuhanginfo.modules.web.entity.ShoppingCart;

/**
 * 购物车DAO接口
 * @author lvls
 * @version 2017-10-23
 */
@MyBatisDao
public interface ShoppingCartDao extends CrudDao<ShoppingCart> {
	List<Map<String,Object>> selectGoodsByUserId(ShoppingCart shoppingCart);

	List<ShoppingCart> selectInvalidGoods(ShoppingCart shoppingCart);

	void changeNum(ShoppingCart shoppingCart);
	
	void changeCheck(ShoppingCart shoppingCart);

	List<ShoppingCart> selectByUserId(String idOrCode);

	List<ShoppingCart> selectByStoreCode(String idOrCode);

	List<ShoppingCart> selectCheckByCodesAndUserId(Map<String,Object> map);

	List<ShoppingCart> selectByids(String[] split);

	ShoppingCart selectByStoreCodeAndGoodsCodeAndUserId(ShoppingCart shoppingCart);

}